package com.tang.qzzp.utils;

import java.time.LocalDateTime;

/**
 * @Author 唐海清
 * @Version V1.0
 * @Description ......
 */
public class TimeUtil {
    private static LocalDateTime time;

    /**
     * 获取当前时间
     *
     * @return LocalDateTime
     */
    public static LocalDateTime getCurrentTime() {
        time = LocalDateTime.now();
        return time;
    }

    /**
     * 获取当前时间的字符串格式
     *
     * @return String
     */
    public static String getCurrentTimeStr() {
        if (time != null) {
            return time.toString();
        }
        return getCurrentTime().toString();
    }

    public static void simpleDateFormat(LocalDateTime time) {

    }
}
